﻿
<div>
    <div class="title-bold-16">
        Add/Edit profile
    </div>
    Company Name: <b>{{profileCompany.companyName}}</b><br />
    <div style="display: table; width: 99%;">
        <div class="table-row-inp">
            <div class="inp-label">
                Publication Date
            </div>
            <div class="inp-holder">
                <input name="profilePublicationDate" type="text" class="inp" datepicker-popup="MM/dd/yyyy" ng-model="profileCompany.companyProfile.publicationDate" ng-required="true" />
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Analyst Summary
            </div>
            <div class="inp-holder">
                <div id="profileDescription" name="profileDescription" required class="editor-field" text-angular ng-model="profileCompany.companyProfile.description" required
                     ta-toolbar="[['h1','h2','h3'],['bold','italics','underline'],['insertLink'],['html']]"></div>
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <span>{{profileCompany.companyProfile.fileName}}</span>
            <input type="file" ng-file-select="profileCompany.onSelectPdf($files, profileCompany.companyProfile);" accept=".pdf" /><br />
            <span class="ui-state-error-text" id="pdfProfile"></span>

            <!-- hidden element for validation -->
            <input name="profileFile" type="text" ng-required="true" ng-model="profileCompany.companyProfile.fileUrl" hidden />
            <!--<input class="btn-green" type="button" value="Upload" ng-click="profileCompany.uploadProfileFile();">-->
        </div>
        <div class="table-spacer">&nbsp;</div>
    </div><br />
    <button class="btn-green" ng-click="profileCompany.saveProfile()" ng-disabled="profileCompany.isSaveDisabled">Save Changes</button> 
    <button class="btn-green" ng-click="profileCompany.cancel(true)">Cancel</button>
</div>

